home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3105 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: mrslate.cs.nyu.edu!burs7211
  2. From: burs7211@mrslate.cs.nyu.edu (Adam Burstein)
  3. Newsgroups: comp.lang.c++,comp.lang.c
  4. Subject: Re: getch() equivalency help ...
  5. Followup-To: comp.lang.c++,comp.lang.c
  6. Date: 22 Jan 1996 03:48:42 GMT
  7. Organization: New York University
  8. Message-ID: <4dv1eq$dql@cmcl2.NYU.EDU>
  9. References: <4dpe6p$e4j@twin.wasatch.com>
  10. NNTP-Posting-Host: mrslate.cs.nyu.edu
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Richard Demanowski (rdemanow@wasatch.com) wrote:
  14. > I need a way to do what getch() does, i.e. pause and wait for a SINGLE
  15. > KEYSTROKE and then pass the value of the pressed key back to the calling
  16. > function.
  17.  
  18. Well, I think you could look in curses.h for the UNIX end.  All in
  19. all, however, I don't know how you'd take care of all platforms at
  20. once.
  21.  
  22. Good luck.
  23.  
  24. Adam
  25.  
  26. --
  27. -------------------------------------------------------------------------
  28. |        .            ,             |                                   |
  29. |                  .:/              |   "There ain't no time            |
  30. |        .      ,,///;,   ,;/       |    to stash the gumbo,            |
  31. |          .   o:::::::;;///        |    Or rattle around               |
  32. |             >::::::::;;\\\        |    in a cage..."                  |
  33. |               ''\\\\\'" ';\       |                     -Phish        |
  34. |                  ';\              |                                   |
  35. -------------------------------------------------------------------------
  36. | Adam Burstein                                     burs7211@cs.nyu.edu |
  37. |              http://galt.cs.nyu.edu/students/burs7211                 |
  38. -------------------------------------------------------------------------
  39.